package com.yn.club.auth.domain.constants;


/**
 * @author YN
 */
public class RedisKey {

  public static final String AUTH_PERMISSION = "auth_permission";
  public static final String AUTH_ROLE = "auth_role";

  /**
   * 权限缓存
   *
   * @param permission 权限标识符
   * @return
   */
  public static String permission(String permission) {
    return String.format("auth_permission:%s", permission);
  }

  /**
   * 角色
   *
   * @param role role
   * @return
   */
  public static String role(String role) {
    return String.format("auth_role:%s", role);
  }

}
